package clases;

import java.io.FileInputStream;
import java.io.ObjectInputStream;

public class Main2 {

	public static void main(String[] args) 
	{
		Padron p = null;
		try
		{	
			FileInputStream  is = new FileInputStream("padron.txt");
		
		ObjectInputStream in = new ObjectInputStream(is);
		p = (Padron) in.readObject();
		in.close();
		}
		catch (Exception ex)
		{
		ex.printStackTrace();
		}
		System.out.println("Leyendo el padron");
		System.out.println(p.toString());

	}	

}
